package cn.com.open.itembank.dto;

import cn.com.open.itembank.common.BaseModel;

import java.util.List;

public class ZTreeModel extends BaseModel {
    private String id;
    private String name;
    private Boolean isChecked;
    /**
     * 是否展开
     */
    private Boolean open;
    /**
     * 是否允许拖拽
     */
    private Boolean drag;
    /**
     *
     */
    private Integer type;
    /**
     * 图标
     */
    private String icon;
    /**
     * 排序
     */
    private Integer orders;
    private String pid;
    /**
     * 层级（章，节，知识点）
     */
    private Integer depth;
    private Boolean childOuter;
    private List<ZTreeModel> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getChecked() {
        return isChecked;
    }

    public void setChecked(Boolean checked) {
        isChecked = checked;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getDrag() {
        return drag;
    }

    public void setDrag(Boolean drag) {
        this.drag = drag;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getDepth() {
        return depth;
    }

    public void setDepth(Integer depth) {
        this.depth = depth;
    }

    public Boolean getChildOuter() {
        return childOuter;
    }

    public void setChildOuter(Boolean childOuter) {
        this.childOuter = childOuter;
    }

    public List<ZTreeModel> getChildren() {
        return children;
    }

    public void setChildren(List<ZTreeModel> children) {
        this.children = children;
    }

    public ZTreeModel() {
        open = true;
        childOuter = false;
    }
}
